Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Programmer's Overview / Part 1 - Getting Started With QuickDraw GX


Chapter 2 - A Quick & Easy Sample Program

This chapter gives a brief introduction to programming with QuickDraw GX. In this chapter, there is all the QuickDraw GX code you need to create, modify, draw, and print a shape.

This chapter is not meant as a comprehensive introduction, but rather as
a streamlined view of programming with QuickDraw GX. The concepts presented in this chapter are discussed very briefly here. You can find more detailed information in Chapter 3, "Using QuickDraw GX Objects."

Specifically, this chapter shows you how to use QuickDraw GX to

With the rich programming interface provided by QuickDraw GX, each of these tasks could be implemented in a number of different ways. This section describes one simple implementation for each task.


Chapter Contents
Creating and Drawing a Curve
Creating a Curve Shape
Setting the Geometry of the Curve
Setting the Pen Width of the Curve
Setting the Color of the Curve
Rotating the Curve
Drawing the Curve to a Macintosh Window
Printing the Curve to the User's Default Printer
A Quick Review of the Sample Program
Examining the Curve Shape With GraphicsBug

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996